package com.zxl.permission.dao;

import com.zxl.permission.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("userDao")
public interface UserDao {
    // 拉取用户列表
    List<User> getUserList();

    // 添加用户
    void addUser(@Param("user") User user);

    // 修改用户
    void alterUser(@Param("user") User user);

    // 删除用户
    void removeUserFromUsername(@Param("username") String username);
}
